package tetris.game.model;

public class Block {
	
	/**
	 * The type of this Block.
	 */
	private BlockType blockType;
	
	/**
	 * The color of this Block.
	 */
	private Color blockColor;
	
	/**
	 * The orientation of this Block in degrees (clockwise, only 90 degree steps allowed).
	 */
	private int rotation;
	
	/**
	 * This constructor is only used by the BlockFactory.
	 * Application should use BlockFactory to generate random Block objects.
	 * 
	 * @param blockType - type of the new Block
	 * @param blockColor - color of the new Block
	 * @param rotation - the orientation of the new Block
	 */
	Block(BlockType blockType, Color blockColor, int rotation) {
		this.blockType = blockType;
		this.blockColor = blockColor;
		this.rotation = rotation;
	}

	public BlockType getBlockType() {
		return blockType;
	}

	public Color getBlockColor() {
		return blockColor;
	}

	public int getRotation() {
		return rotation;
	}

	public void setRotation(int rotation) {
		this.rotation = rotation;
	}
	
	
	
}
